import { defineStore } from "pinia";
import { service, useStore } from "/@/cool";
import { ref, reactive } from "vue";
import { storage } from "/@/cool/utils";

export const useIndexStore = defineStore("index", function () {
	const { user } = useStore();
	let data = reactive({
		msg_show: false,
		advertisement_show: false,
		sidebar_show: false,
		pull_show: false,
		loading: false,
		pagination: {
			current: 1,
			size: 10,
		},
		list: [] as any[],
		total: 0,
	});

	return {
		data,
	};
});
